/*
 ============================================================================
 Name        : Casm.c
 Author      : 
 Version     :
 Copyright   : Your copyright notice
 Description : Hello World in C, Ansi-style
 ============================================================================
 */

#include <stdio.h>

static int value_assignment(int input) {
  int ret = 0;

  asm volatile(
    "movl %1, %0\n"
    :"=r"(ret)
    :"r"(input)
  );

  return ret;
}

int main() {
  int input = 1;
  int ret = value_assignment(input);

  printf("input = %d\n", input);
  printf("ret = %d\n", ret);

  return 0;
}
